import {get, post, del, put} from "@/apis/http/request";
import {AdminUpgradeConfig} from "@/apis/model/system/AdminUpgradeConfigModel";

/**
* 得到列表
* @param params
*/
export const getAdminUpgradeConfigList = (params: any) => get("/adminUpgradeConfig/list", params)

/**
* 得到分页列表
* @param params
*/
export const adminUpgradeConfigPage = (params: any) => post("/adminUpgradeConfig/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteAdminUpgradeConfigById = (id: number) => del("/adminUpgradeConfig/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertAdminUpgradeConfig = (param: AdminUpgradeConfig) => post("/adminUpgradeConfig", param)

/**
* 更新数据
* @param param
*/
export const updateAdminUpgradeConfig = (param: AdminUpgradeConfig) => put("/adminUpgradeConfig", param)